package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : 洪俊新
 * @date : 2021/9/14 18:28
 * @description:
 */
public class PhpDiscoverRes {
    /**
     *主键
     * ${column.comment}
     * isnull 1
     */
    private Integer id;
    /**
     * 发布者id
     * isnull 0
     */            private Integer userId;
    /**
     * 发布者身份：0用户；1供应商城商户；2本地生活商户
     * isnull 0
     */            private Integer userType;
    /**
     * 用户昵称
     * isnull 0
     */            private String nickname;
    /**
     * 用户头像
     * isnull 0
     */            private String avatar;
    /**
     * 发布者手机号
     * isnull 0
     */            private String phone;
    /**
     * 短视频标题
     * isnull 0
     */            private String title;
    /**
     * 内容
     * isnull 0
     */            private String content;
    /**
     * 商品名称
     * isnull 0
     */            private String commodityName;
    /**
     * 点赞数
     * isnull 0
     */            private Integer likeCount;
    /**
     * 评论数
     * isnull 0
     */            private Integer commentCount;

    /**
     * 短视频发布时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 短视频更新时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

     private Integer isDel;

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
